package com.system.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.system.user.entity.ThresholdEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ThresholdDao {

    List<ThresholdEntity> selectByBNumber(List<String> bNumbers);

    Double selectMax(@Param("bNumber") String bNumber);

    int insertThreshold(@Param("bNumber") String bNumber, @Param("max") Double max);

    int updateThreshold(ThresholdEntity thresholdEntity);

    int deleteThreshold(@Param("bNumber") String bNumber);
}
